]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
placeDisplay: use new bookmark file location
authorMatthias Clasen <mclasen@redhat.com>
Sat, 5 May 2012 19:34:34 +0000 (15:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 7 May 2012 12:21:59 +0000 (08:21 -0400)
GTK+ 3.5 is placing the bookmarks file in
$XDG_CONFIG_HOME/gtk-3.0/bookmarks. Adapt to that change.

https://bugzilla.gnome.org/show_bug.cgi?id=675443

js/ui/placeDisplay.js

index 9c1352c403f8c914026564c22a3c0e29e91a372c..8441282c54e14369644d1f2485e5e5633dff5e3c 100644 (file)
@@ -189,7 +189,7 @@ const PlacesManager = new Lang.Class({
         this._volumeMonitor.connect('drive-changed', Lang.bind(this, this._updateDevices));
         this._updateDevices();
 
-        this._bookmarksPath = GLib.build_filenamev([GLib.get_home_dir(), '.gtk-bookmarks']);
+        this._bookmarksPath = GLib.build_filenamev([GLib.get_user_config_dir(), 'gtk-3.0', 'bookmarks']);
         this._bookmarksFile = Gio.file_new_for_path(this._bookmarksPath);
         this._monitor = this._bookmarksFile.monitor_file(Gio.FileMonitorFlags.NONE, null);
         this._bookmarkTimeoutId = 0;